package main;
import config.SpringConfig;
import dao.BookDao;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test
{
	//bean容器管理对象
	@Test
	public void test01(){
		ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
		BookDao bookDao = (BookDao) ctx.getBean("bookDao");
		bookDao.print();
	}


}
